﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Vision.Utilities.VisualStudioTool
{
    public class CodeChangesetTrackModel
    {
        public const string ChangesetType_Bug = "Bug Fix";
        public const string ChangesetType_Enhancement = "Enhancement";
        public const string ChangesetType_NewFeature = "New Feature";

        public const string ProjectType_CMS6 = "CMS6";
        public const string ProjectType_VMC = "VMC";
        public const string ProjectType_VisionSearch = "VisionSearch";

        public CodeChangesetTrackModel()
        {
            ChangedFiles = new List<ChangesetFileItem>();
        }

        public int Order { get; set; }

        public int ChangesetNumber { get; set; }

        public string Summary { get; set; }

        /// <summary>
        /// CMS6, VMC, VisionSearch
        /// </summary>
        public string ProjectType { get; set; }

        /// <summary>
        /// Bug Fix, Enhancement, New Feature
        /// </summary>
        public string ChangesetType { get; set; }

        public IEnumerable<ChangesetFileItem> ChangedFiles { get; set; }
    }

    public class ChangesetFileItem
    {
        public const string ChangeType_Added = "Added";
        public const string ChangeType_Modified = "Modified";
        public const string ChangeType_Deleted = "Deleted";

        public string FileName { get; set; }

        /// <summary>
        /// Added, Modified, Deleted
        /// </summary>
        public string ChangeType { get; set; }
    }
}
